package com.fushenlan.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 核酸检测申请记录表
 * @TableName nuclein_detection_apply_record
 */
@Data
@TableName("nuclein_detection_apply_record")
public class NucleinDetectionApplyRecord implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 通知名称 
     */
    @TableField(value = "notification_name")
    private String notificationName;
    /**
     * 居委id
     */
    @TableField(value = "neighborhood_id")
    private Long neighborhoodId;
    /**
     * 检测时间
     */
    @TableField(value = "detection_time")
    private Date detectionTime;

    /**
     * 通知内容
     */
    @TableField(value = "notice_content")
    private String noticeContent;

    /**
     * 1-全部小区 2-指定小区 3-指定检测人员 4-阳性及密接人员
     */
    @TableField(value = "detection_type")
    private Integer detectionType;

    /**
     * 检测人数   人员范围3-4的时候有值
     */
    @TableField(value = "detection_number")
    private Integer detectionNumber;

    /**
     * '是否开始录入结果 0-否 1-是 '
     */
    @TableField(value = "if_input_results")
    private Integer ifInputResults;
    /**
     * 
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_user")
    private String updateUser;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 通知名称 
     */
    public String getNotificationName() {
        return notificationName;
    }

    /**
     * 通知名称 
     */
    public void setNotificationName(String notificationName) {
        this.notificationName = notificationName;
    }

    /**
     * 检测时间
     */
    public Date getDetectionTime() {
        return detectionTime;
    }

    /**
     * 检测时间
     */
    public void setDetectionTime(Date detectionTime) {
        this.detectionTime = detectionTime;
    }

    /**
     * 通知内容
     */
    public String getNoticeContent() {
        return noticeContent;
    }

    /**
     * 通知内容
     */
    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }

    /**
     * 1-全部小区 2-指定小区 3-指定检测人员 4-阳性及密接人员
     */
    public Integer getDetectionType() {
        return detectionType;
    }

    /**
     * 1-全部小区 2-指定小区 3-指定检测人员 4-阳性及密接人员
     */
    public void setDetectionType(Integer detectionType) {
        this.detectionType = detectionType;
    }

    /**
     * 检测人数   人员范围3-4的时候有值
     */
    public Integer getDetectionNumber() {
        return detectionNumber;
    }

    /**
     * 检测人数   人员范围3-4的时候有值
     */
    public void setDetectionNumber(Integer detectionNumber) {
        this.detectionNumber = detectionNumber;
    }

    /**
     * 
     */
    public String getCreateUser() {
        return createUser;
    }

    /**
     * 
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public String getUpdateUser() {
        return updateUser;
    }

    /**
     * 
     */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        NucleinDetectionApplyRecord other = (NucleinDetectionApplyRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getNotificationName() == null ? other.getNotificationName() == null : this.getNotificationName().equals(other.getNotificationName()))
            && (this.getDetectionTime() == null ? other.getDetectionTime() == null : this.getDetectionTime().equals(other.getDetectionTime()))
            && (this.getNoticeContent() == null ? other.getNoticeContent() == null : this.getNoticeContent().equals(other.getNoticeContent()))
            && (this.getDetectionType() == null ? other.getDetectionType() == null : this.getDetectionType().equals(other.getDetectionType()))
            && (this.getDetectionNumber() == null ? other.getDetectionNumber() == null : this.getDetectionNumber().equals(other.getDetectionNumber()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getNotificationName() == null) ? 0 : getNotificationName().hashCode());
        result = prime * result + ((getDetectionTime() == null) ? 0 : getDetectionTime().hashCode());
        result = prime * result + ((getNoticeContent() == null) ? 0 : getNoticeContent().hashCode());
        result = prime * result + ((getDetectionType() == null) ? 0 : getDetectionType().hashCode());
        result = prime * result + ((getDetectionNumber() == null) ? 0 : getDetectionNumber().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", notificationName=").append(notificationName);
        sb.append(", detectionTime=").append(detectionTime);
        sb.append(", noticeContent=").append(noticeContent);
        sb.append(", detectionType=").append(detectionType);
        sb.append(", detectionNumber=").append(detectionNumber);
        sb.append(", createUser=").append(createUser);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}